@import "_mixins";
@import "_variable";

body {
    width: 1280px;
    font-size: 16px;
}

@media screen and (min-width: 1280px){
    body {
        width: auto;
    }
}

nav {
    text-align: right;
    li {
        list-style: none;
        display: inline-block;
        line-height: 3;
        padding: 0 1rem;
        border-bottom: 2px solid transparent;

        a{
            display: inline-block;
            text-decoration: none;
            color: inherit;
            font-family: "宋体";
            height: 100%;
            vertical-align: top;
        }

        &:last-child a {
            color: $color-red;
        }

        &:hover {
            color: $color-red;
            border-bottom: 2px solid $color-red;
        }
    }
}

.icon {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    vertical-align: text-bottom;
}

.icon-logo {
    @extend .icon;
    background: url("../icons/book.svg") no-repeat center center;
    background-size: cover;
    margin-right: .4rem;
}

.icon-man {
    @extend .icon;
    width: 1.2rem;
    height: 1.2rem;
    margin-right: .2rem;
    background: url("../icons/人员.svg") no-repeat center center;
    background-size: cover;
}

#logo {
    font-size: 18px;
    font-weight: 550;
    float: left;
    line-height: calc(3rem + 2px);
    margin-left: 2rem;
}


p {
    margin: 0;
}

.newlife {
    height: 35rem;
    background: url("../image/2.jpeg") no-repeat center center;
    background-size: cover;
    color: white;
    position: relative;

    div {
        position: absolute;
        top: 50%;
        left: 10%;
        transform: translatey(-50%);
    }

    .main-title {
        font: {
            size: 3rem;
            family: Arial, Helvetica, sans-serif;
        }
        margin-bottom: .5rem;
    }

    .sub-title {
        width: 14rem;
        margin-bottom: 3rem;
    }

    button {
        @include button-variant($color-red,$color-width,$color-deepred,$color-width,$padding-y:.75rem,$padding-x:5rem,$font-size:1.5rem);
    }
}

.four-choose {
    height: 15rem;
    font-size: 0;

    #three-circle {
        border: $color-red double 6px;
        border-radius: 50%;
        padding: 2px;

        div {
            box-sizing: border-box;
            border: $color-red solid 2px;
            border-radius: 50%;
            width: 100%;
            height: 100%;
        }
    }

    .out-contain {
        box-sizing: border-box;
        width: 25%;
        height: 100%;
        position: relative;
        display: inline-block;
        font-size: 1rem;

        .inner-contain {
            display: inline-block;
            position: absolute;
            width: 100%;
            top: 50%;
            transform: translateY(-50%);
    
            & :nth-child(1) {
                margin: 0 auto;
                width: 30px;
                height: 30px;
                box-sizing: border-box;
            }

            & :nth-child(2) {
                text-align: center;
                margin-top: 2rem;
                padding: 0 25%;
                border-right: 1px solid $color-gray119;
            }
        }

        &:last-child .inner-contain :nth-child(2) {
            border: none;
        }
    }

}

#flag {
    background: url("../icons/flag-旗子.svg") no-repeat center center;
    background-size: cover;
}

#flower {
    background: url("../icons/花\ \(6\).svg") no-repeat center center;
    background-size: cover;
}

#square {
    background: url("../icons/方块.svg") no-repeat center center;
    background-size: cover;
}

.new-world {
    border: 1px solid transparent;
    height: 18rem;
    background-color: $color-gray244;

    div {
        height: 5rem;
        background: url("../icons/book.svg") no-repeat center center;
        background-size: contain;
        margin: 3rem 0 1rem 0;
    }

    p{
        text-align: center;
        font-size: 3rem;
        color: $color-word149;
    }
}

